package org.neogenesis.web.loader;

/**
 * 
 * @author fabiofumarola
 */
public enum TypeMetaPlatform {
	NONE(0), ENTREZ_GENE_ID(5), GENE_ASSIGNMENT(2), GENE_ID(4), GENE_SYMBOL(1), GENE(
			3), LOCUS(5);

	private final int priority;

	TypeMetaPlatform(int priority) {
		this.priority = priority;
	}

	public int priority() {
		return this.priority;
	}

	public static TypeMetaPlatform getByContainment(String value) {

		for (TypeMetaPlatform type : TypeMetaPlatform.values()) {
			if (type.toString().equalsIgnoreCase(value))
				return type;
		}

		return TypeMetaPlatform.NONE;

	}
}
